package com.woniu.login.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.common.dto.LoginDto;
import com.woniu.common.entity.AdmEmployee;
import com.woniu.common.entity.Result;

import javax.servlet.http.HttpServletResponse;

public interface LoginService {
    //  员工登录
    public Result admlogin(LoginDto loginDto, HttpServletResponse response);

    //  根据工号查询员工信息
    public AdmEmployee getAdmEmployeeByNumber(String Number);
    //  根据jwt获取用户信息
    public AdmEmployee getJwtTokenInfo(String number);
    //  向邮箱发送验证码
    public Result sendEmail(String email,int code);
    //  添加员工
    void addEmployee(AdmEmployee admEmployee);
}
